home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / GZIP107S.ZIP;1 / GZIP107.TAR / gzip-1.0.7 / os2 / Makefile.os2 < prev   
Encoding:
Makefile  |  1993-03-11  |  1.2 KB  |  52 lines

  1. # Makefile for gzip (GNU zip)    -*- Indented-Text -*-
  2. # Copyright (C) 1992-1993 Jean-loup Gailly
  3.  
  4. # specialized version for OS/2
  5. # compilation with emx 0.8f (gcc 2.3.3) or newer
  6.  
  7. # release version, statically linked C runtime
  8. static:
  9.     $(MAKE) -f Makefile.os2 all \
  10.     CC="gcc -Zomf -Zsys -O" O=".obj" LDFLAGS="-s"
  11.  
  12. # release version, dynamically linked C runtime
  13. dynamic:
  14.     $(MAKE) -f Makefile.os2 all \
  15.     CC="gcc -Zomf -Zmt -O" O=".obj" LDFLAGS="-s"
  16.  
  17. # debugging version
  18. debug:
  19.     $(MAKE) -f Makefile.os2 all \
  20.     CC="gcc -g" O=".o"
  21.  
  22. CFLAGS  = -DOS2 -DASMV
  23. LIBS    = gzip.def
  24. OBJA    = match$O
  25.  
  26. OBJS = gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O util$O \
  27.        crypt$O lzw$O unlzw$O unpack$O getopt$O $(OBJA)
  28.  
  29. .c$O:
  30.     $(CC) $(CFLAGS) -c $<
  31.  
  32. all: gzip.exe gzip.info gzip.doc
  33.  
  34. gzip.exe: $(OBJS)
  35.     $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
  36.  
  37. gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O: gzip.h tailor.h
  38. util$O lzw$O unlzw$O unpack$O crypt$O: gzip.h tailor.h
  39.  
  40. gzip$O unlzw$O: revision.h lzw.h
  41.  
  42. bits$O unzip$O util$O zip$O: crypt.h
  43.  
  44. match$O: match.S
  45.     $(CC) -xassembler-with-cpp -c -o $@ match.S
  46.  
  47. gzip.info: gzip.texi gpl.texinfo
  48.     makeinfo gzip.texi
  49.  
  50. gzip.doc: gzip.1
  51.     groff -man gzip.1 > $@
  52.